import request from '@/utils/request'

// 获取分类树列表
export function queryCategoryTreeList(params)  {
    return request({
        method: 'POST',
        url: 'admin/category/treeList',
        params
    })
}

// 新增分类
export function createCategory(data)  {
    return request({
        method: 'POST',
        url: 'admin/category/create',
        data
    })
}

// 更新分类
export function updateCategory(data)  {
    return request({
        method: 'POST',
        url: 'admin/category/update',
        data
    })
}

// 批量删除标签
export function delBatchCategory(data)  {
    return request({
        method: 'POST',
        url: 'admin/category/delBatch',
        data
    })
}